<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>帮助页面</title>
  <style>
    .ie {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url("./img/bg/ie.png") no-repeat;
      background-size: 100% 100%;
    }

    .description {
      width: 750px;
      margin: 200px auto;
      color: #fff;
    }

    .description h1 {
      font-size: 25px;
      margin-bottom: 30px;
    }

    .description p {
      font-size: 18px;
      margin-bottom: 5px !important;
    }

    .description a {
      color: #2A97F9;
      text-decoration: underline;
    }

    .description a:nth-child(2) {
      font-size: 15px;
    }

    .description p:first-child {
      margin-bottom: 15px !important;
    }
  </style>
</head>
<body>
<div class="ie">
  <div class="description">
    <h1>为保证更好的服务体验，请使用其他浏览器登录系统。</h1>
    <p>推荐使用</p>
    <p><a target="_blank" href="https://www.google.cn/intl/zh-CN/chrome/">谷歌浏览器</a></p>
    <p><a target="_blank" href="https://browser.360.cn">360浏览器的极速模式</a>(<a target="_blank"
                                                                           href="http://se.360.cn/v6/help/help5.html">模式切换帮助</a>)
    </p>
    <p><a href="javascript:void(0)">或者其他国内其他浏览器均可</a></p>
  </div>
</div>
<script src="<%= BASE_URL %>cdn/js/browser.version.js"></script>
<script>
    function IEVersion() {
        var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
        var issafariBrowser = /Safari/.test(userAgent) && !/Chrome/.test(userAgent);
        var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1; //判断是否IE<11浏览器
        var isEdge = userAgent.indexOf("Edge") > -1 && !isIE; //判断是否IE的Edge浏览器
        var isIE11 = userAgent.indexOf('Trident') > -1 && userAgent.indexOf("rv:11.0") > -1;
        if (isIE || isEdge || isIE11 || issafariBrowser) {
            return true
        } else {
            return false;//不是ie浏览器
        }
    }
    if (!IEVersion()) {
        if(location.href.indexOf('help.html')!=-1){
            location.href = location.origin+"#/login";
        }
    }
</script>
</body>
</html>
